class DetailEntity {
	int code;
	DetailData data;
	String message;

	DetailEntity({this.code, this.data, this.message});

	DetailEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new DetailData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class DetailData {
	List<DetailDataImage> images;
	String problem;
	String problemName;
	dynamic nickname;
	String name;
	String createdAt;
	String tel;
	String id;
	String reply;
	String status;
	String username;

	DetailData({this.images, this.problem, this.problemName, this.nickname, this.name, this.createdAt, this.tel, this.id, this.reply, this.status, this.username});

	DetailData.fromJson(Map<String, dynamic> json) {
		if (json['images'] != null) {
			images = new List<DetailDataImage>();(json['images'] as List).forEach((v) { images.add(new DetailDataImage.fromJson(v)); });
		}
		problem = json['problem'];
		problemName = json['problem_name'];
		nickname = json['nickname'];
		name = json['name'];
		createdAt = json['created_at'];
		tel = json['tel'];
		id = json['id'];
		reply = json['reply'];
		status = json['status'];
		username = json['username'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.images != null) {
      data['images'] =  this.images.map((v) => v.toJson()).toList();
    }
		data['problem'] = this.problem;
		data['problem_name'] = this.problemName;
		data['nickname'] = this.nickname;
		data['name'] = this.name;
		data['created_at'] = this.createdAt;
		data['tel'] = this.tel;
		data['id'] = this.id;
		data['reply'] = this.reply;
		data['status'] = this.status;
		data['username'] = this.username;
		return data;
	}
}

class DetailDataImage {
	String img;

	DetailDataImage({this.img});

	DetailDataImage.fromJson(Map<String, dynamic> json) {
		img = json['img'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['img'] = this.img;
		return data;
	}
}
